<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Data Driven Substructure: DataSet Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Data Driven Substructure
   
   </div>
   <div id="projectbrief">A library for carrying out Multivariate Kernel Smoothing--designed to be fast and flexible for large data processing.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">DataSet Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="DataSet" -->
<p>a class to store multi-dimensional data  
 <a href="classDataSet.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="dataset_8h_source.html">dataset.h</a>&gt;</code></p>

<p><a href="classDataSet-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a2a0c14de0e419a25801ce1d443ed20ba">DataSet</a> (const valarray&lt; double &gt; &amp;<a class="el" href="classDataSet.html#a6f3d9efb73b7351d519cc58e6f889695">min</a>, const valarray&lt; double &gt; &amp;<a class="el" href="classDataSet.html#ad1091c9131411b8e99a1f2a52faf85be">max</a>, const valarray&lt; double &gt; &amp;<a class="el" href="classDataSet.html#adfab405eda8e41df01199ee4c87d72a2">precision</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ae7568c541f225640314e362bdeb8b228">DataSet</a> (int nvar, double *<a class="el" href="classDataSet.html#a6f3d9efb73b7351d519cc58e6f889695">min</a>, double *<a class="el" href="classDataSet.html#ad1091c9131411b8e99a1f2a52faf85be">max</a>, double *precision_=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a021cb974190e69518e340c2b501254d5"></a><!-- doxytag: member="DataSet::Rank" ref="a021cb974190e69518e340c2b501254d5" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a021cb974190e69518e340c2b501254d5">Rank</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return rank of the dataset <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">valarray&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a7261bb29701a071f76349854d1f39cb0">GetBin</a> (const valarray&lt; double &gt; &amp;ntuple) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0c1c04d4bdd1a33a4ebac4010151847"></a><!-- doxytag: member="DataSet::Fill" ref="ad0c1c04d4bdd1a33a4ebac4010151847" args="(const valarray&lt; double &gt; &amp;ntuple, double weight=1.0)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ad0c1c04d4bdd1a33a4ebac4010151847">Fill</a> (const valarray&lt; double &gt; &amp;ntuple, double weight=1.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">fill dataset by a data sample <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90c5673e76a3b700effd4bdbceeb1fbe"></a><!-- doxytag: member="DataSet::ComputePDF_DirectSmoothing" ref="a90c5673e76a3b700effd4bdbceeb1fbe" args="(bool timer_mode=false)" -->
<a class="el" href="classPDF.html">PDF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a90c5673e76a3b700effd4bdbceeb1fbe">ComputePDF_DirectSmoothing</a> (bool timer_mode=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">OLD core code to generate a <a class="el" href="classPDF.html" title="PDF functions.">PDF</a> based on multivariate Kernel Smoothing. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPDF.html">PDF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a5cd26da77fe5563bdf4dca753c704720">ComputePDF</a> (bool timer_mode=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDataSet.html">DataSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a1a27ec9e7f2b521be5175aa4973b6adc">GenerateDataSet</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf221c899e73e154ff9cb611380b3feb"></a><!-- doxytag: member="DataSet::SetRandomSeed" ref="abf221c899e73e154ff9cb611380b3feb" args="(int seed)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#abf221c899e73e154ff9cb611380b3feb">SetRandomSeed</a> (int seed)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">function to set a fixed random seed <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae505190ff2d4218019bce303108192e6"></a><!-- doxytag: member="DataSet::one_over_width" ref="ae505190ff2d4218019bce303108192e6" args="" -->
valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ae505190ff2d4218019bce303108192e6">one_over_width</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store width info <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37bb049ee945bdc4344bd7015f2b9a23"></a><!-- doxytag: member="DataSet::width" ref="a37bb049ee945bdc4344bd7015f2b9a23" args="" -->
valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a37bb049ee945bdc4344bd7015f2b9a23">width</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store width info <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6f3d9efb73b7351d519cc58e6f889695"></a><!-- doxytag: member="DataSet::min" ref="a6f3d9efb73b7351d519cc58e6f889695" args="" -->
valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a6f3d9efb73b7351d519cc58e6f889695">min</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store min values <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad1091c9131411b8e99a1f2a52faf85be"></a><!-- doxytag: member="DataSet::max" ref="ad1091c9131411b8e99a1f2a52faf85be" args="" -->
valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ad1091c9131411b8e99a1f2a52faf85be">max</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store max values <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab20896c8244623369c67b38ad4e81a5b"></a><!-- doxytag: member="DataSet::nbins" ref="ab20896c8244623369c67b38ad4e81a5b" args="" -->
valarray&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ab20896c8244623369c67b38ad4e81a5b">nbins</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store number of bins <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adfab405eda8e41df01199ee4c87d72a2"></a><!-- doxytag: member="DataSet::precision" ref="adfab405eda8e41df01199ee4c87d72a2" args="" -->
valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#adfab405eda8e41df01199ee4c87d72a2">precision</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">vector to store precision of variables <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ac7764490ed2b275d3720e30996869188">kernel_smoothing_factor</a> = 1.0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27e878e4de2c6f9d55f340b95dbdf6c3"></a><!-- doxytag: member="DataSet::b_bias_only" ref="a27e878e4de2c6f9d55f340b95dbdf6c3" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a27e878e4de2c6f9d55f340b95dbdf6c3">b_bias_only</a> = false</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">setting to enable bias only in computation of <a class="el" href="classPDF.html" title="PDF functions.">PDF</a> <br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a92bf605df08a3cdb311f0e9c64adb409">Initialize</a> (int nvar, const double *<a class="el" href="classDataSet.html#a6f3d9efb73b7351d519cc58e6f889695">min</a>, const double *<a class="el" href="classDataSet.html#ad1091c9131411b8e99a1f2a52faf85be">max</a>, const double *precision_=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5631df5826534bb6488e3170ba0d1d3"></a><!-- doxytag: member="DataSet::GetBinCenter" ref="ae5631df5826534bb6488e3170ba0d1d3" args="(int index, int bin) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ae5631df5826534bb6488e3170ba0d1d3">GetBinCenter</a> (int index, int bin) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">compute value centered at bin (a particular dimension) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">valarray&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a30709a7071a755414f828304ca0b3133">GetBinCenter</a> (const valarray&lt; int &gt; &amp;index) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#aa7f019bcf5bb4fd63238bf8935cd306a">GetBin_helper</a> (double ntuple, int bin) const </td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff0fae83177a8189dbfaee8fd3980fd5"></a><!-- doxytag: member="DataSet::Random_Gaus" ref="aff0fae83177a8189dbfaee8fd3980fd5" args="()" -->
static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#aff0fae83177a8189dbfaee8fd3980fd5">Random_Gaus</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">output a normally distributed random variable <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ab46ba586ad86490f9b3dce2067ccc157">Random_Poisson</a> (double lambda)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a82950e47b524eb2e242e00e17eb2d4"></a><!-- doxytag: member="DataSet::data" ref="a4a82950e47b524eb2e242e00e17eb2d4" args="" -->
<a class="el" href="classTensor.html">Tensor</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a4a82950e47b524eb2e242e00e17eb2d4">data</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">to store multidimensional info <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTensor.html">Tensor</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a810993e4426dea4919dc1919b3ea6318">data2</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCovariance.html">Covariance</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a34fef970d339fe128f40410d8b856106">co</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6b2ba7b0adca376ba99086a021ef884"></a><!-- doxytag: member="DataSet::irand" ref="ab6b2ba7b0adca376ba99086a021ef884" args="" -->
static MTRand_int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#ab6b2ba7b0adca376ba99086a021ef884">irand</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">random number generator <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc9f560353759821e03b698ec9b707d9"></a><!-- doxytag: member="DataSet::b_random_gaus" ref="acc9f560353759821e03b698ec9b707d9" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#acc9f560353759821e03b698ec9b707d9">b_random_gaus</a> = false</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">boolean to keep track of Gaussian random variables <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#abdb32000d02c4b081b11fa3923e2d641">next_gaus</a> = 0</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2979dd04560882ed9e4533ccea473bc6"></a><!-- doxytag: member="DataSet::operator&lt;&lt;" ref="a2979dd04560882ed9e4533ccea473bc6" args="(ostream &amp;os, const DataSet &amp;)" -->
ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDataSet.html#a2979dd04560882ed9e4533ccea473bc6">operator&lt;&lt;</a> (ostream &amp;os, const <a class="el" href="classDataSet.html">DataSet</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">streaming operator for debugging purposes <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>a class to store multi-dimensional data </p>
<p>A class for multi-dimension histogram included fucntions to compute Multivariate Kernel smoothing </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2a0c14de0e419a25801ce1d443ed20ba"></a><!-- doxytag: member="DataSet::DataSet" ref="a2a0c14de0e419a25801ce1d443ed20ba" args="(const valarray&lt; double &gt; &amp;min, const valarray&lt; double &gt; &amp;max, const valarray&lt; double &gt; &amp;precision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDataSet.html#a2a0c14de0e419a25801ce1d443ed20ba">DataSet::DataSet</a> </td>
          <td>(</td>
          <td class="paramtype">const valarray&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const valarray&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const valarray&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>precision</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>constructor using valarrays supply min &amp; max range precision (default to 0.01 for all variables) </p>

</div>
</div>
<a class="anchor" id="ae7568c541f225640314e362bdeb8b228"></a><!-- doxytag: member="DataSet::DataSet" ref="ae7568c541f225640314e362bdeb8b228" args="(int nvar, double *min, double *max, double *precision_=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDataSet.html#a2a0c14de0e419a25801ce1d443ed20ba">DataSet::DataSet</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nvar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>precision_</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>constructor supply number of variables, min &amp; max range precision (default to 0.01 for all variables) </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5cd26da77fe5563bdf4dca753c704720"></a><!-- doxytag: member="DataSet::ComputePDF" ref="a5cd26da77fe5563bdf4dca753c704720" args="(bool timer_mode=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPDF.html">PDF</a> <a class="el" href="classDataSet.html#a5cd26da77fe5563bdf4dca753c704720">DataSet::ComputePDF</a> </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>timer_mode</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>core code to generate a <a class="el" href="classPDF.html" title="PDF functions.">PDF</a> based on multivariate Kernel Smoothing fast algorithm implementing discrete fourier transform </p>
<p>Initialize <a class="el" href="classPDF.html" title="PDF functions.">PDF</a></p>
<p>Initialize FFTW</p>
<p>Initialize data input</p>
<p>Initialize variance input</p>

</div>
</div>
<a class="anchor" id="a1a27ec9e7f2b521be5175aa4973b6adc"></a><!-- doxytag: member="DataSet::GenerateDataSet" ref="a1a27ec9e7f2b521be5175aa4973b6adc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDataSet.html">DataSet</a> <a class="el" href="classDataSet.html#a1a27ec9e7f2b521be5175aa4973b6adc">DataSet::GenerateDataSet</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>a class to generate new dataset by fluctuate each bin according to a Log-Normal distribution </p>

</div>
</div>
<a class="anchor" id="a7261bb29701a071f76349854d1f39cb0"></a><!-- doxytag: member="DataSet::GetBin" ref="a7261bb29701a071f76349854d1f39cb0" args="(const valarray&lt; double &gt; &amp;ntuple) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">valarray&lt; int &gt; <a class="el" href="classDataSet.html#a7261bb29701a071f76349854d1f39cb0">DataSet::GetBin</a> </td>
          <td>(</td>
          <td class="paramtype">const valarray&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>ntuple</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return bin for a given ntuple returns the index in 1D valarray </p>

</div>
</div>
<a class="anchor" id="aa7f019bcf5bb4fd63238bf8935cd306a"></a><!-- doxytag: member="DataSet::GetBin_helper" ref="aa7f019bcf5bb4fd63238bf8935cd306a" args="(double ntuple, int bin) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classDataSet.html#aa7f019bcf5bb4fd63238bf8935cd306a">DataSet::GetBin_helper</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ntuple</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return bin for a given ntuple (in multidimension) helper function for GetBin UNSAEF function, assume length of ntuple is same as rank </p>

</div>
</div>
<a class="anchor" id="a30709a7071a755414f828304ca0b3133"></a><!-- doxytag: member="DataSet::GetBinCenter" ref="a30709a7071a755414f828304ca0b3133" args="(const valarray&lt; int &gt; &amp;index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">valarray&lt; double &gt; <a class="el" href="classDataSet.html#ae5631df5826534bb6488e3170ba0d1d3">DataSet::GetBinCenter</a> </td>
          <td>(</td>
          <td class="paramtype">const valarray&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>compute value array centered at an vectorial index i.e. pt, m, t21...etc </p>

</div>
</div>
<a class="anchor" id="a92bf605df08a3cdb311f0e9c64adb409"></a><!-- doxytag: member="DataSet::Initialize" ref="a92bf605df08a3cdb311f0e9c64adb409" args="(int nvar, const double *min, const double *max, const double *precision_=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDataSet.html#a92bf605df08a3cdb311f0e9c64adb409">DataSet::Initialize</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nvar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>precision_</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>unsafe way to initialize a dataset supply number of variables, min &amp; max range precision (default to 0.01 for all variables) </p>

</div>
</div>
<a class="anchor" id="ab46ba586ad86490f9b3dce2067ccc157"></a><!-- doxytag: member="DataSet::Random_Poisson" ref="ab46ba586ad86490f9b3dce2067ccc157" args="(double lambda)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static double <a class="el" href="classDataSet.html#ab46ba586ad86490f9b3dce2067ccc157">DataSet::Random_Poisson</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>lambda</em></td><td>)</td>
          <td><code> [inline, static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>output a Poisson distributed random number (integer) if lambda &gt; 20, output a normally distributed number </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a34fef970d339fe128f40410d8b856106"></a><!-- doxytag: member="DataSet::co" ref="a34fef970d339fe128f40410d8b856106" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCovariance.html">Covariance</a> <a class="el" href="classDataSet.html#a34fef970d339fe128f40410d8b856106">DataSet::co</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>to store covariance matrix and bandwidth info for Kernel Smoothing </p>

</div>
</div>
<a class="anchor" id="a810993e4426dea4919dc1919b3ea6318"></a><!-- doxytag: member="DataSet::data2" ref="a810993e4426dea4919dc1919b3ea6318" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTensor.html">Tensor</a>&lt;double&gt; <a class="el" href="classDataSet.html#a810993e4426dea4919dc1919b3ea6318">DataSet::data2</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>to store multidimensional info (store value^2) needed to compute error </p>

</div>
</div>
<a class="anchor" id="ac7764490ed2b275d3720e30996869188"></a><!-- doxytag: member="DataSet::kernel_smoothing_factor" ref="ac7764490ed2b275d3720e30996869188" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classDataSet.html#ac7764490ed2b275d3720e30996869188">DataSet::kernel_smoothing_factor</a> = 1.0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>extra factor for smoothing multiplication factor for eff_n if factor &gt; 1.0, undersmooth if factor &lt; 1.0, oversmooth </p>

</div>
</div>
<a class="anchor" id="abdb32000d02c4b081b11fa3923e2d641"></a><!-- doxytag: member="DataSet::next_gaus" ref="abdb32000d02c4b081b11fa3923e2d641" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classDataSet.html#abdb32000d02c4b081b11fa3923e2d641">DataSet::next_gaus</a> = 0<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>the next gaussian random variable they are calculated two at a time </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="dataset_8h_source.html">dataset.h</a></li>
<li>dataset.c</li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Sep 12 2013 17:12:58 for Data Driven Substructure by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
